package cn.qiuyu.gift;

import cn.qiuyu.gift.util.PageList;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;
import java.util.concurrent.TimeUnit;

@SpringBootTest
@RunWith(SpringJUnit4ClassRunner.class)
public class test {


    @Autowired
    @Qualifier("redisTemplate")
    private RedisTemplate template;

    @Autowired
    private RedisTemplate<Object,Object> redisTemplate;

    @Test
    public void test() throws Exception{
        redisTemplate.opsForValue().set(123,5,5, TimeUnit.MINUTES);
    }


}
